# -*- coding: utf-8 -*-
# !/usr/bin/env python
from rest_framework.views import APIView
from components.resource_management.project_package.dao import query_projct_package
from utils.views import Result

class ProjectPackage(APIView):
    def get(self, request):
        data = request.query_params
        host_data_list = []
        # if data['project_id']:
        host_data_list = query_projct_package(data['project_id'])
        return Result.success_response(data=host_data_list, msg='查询成功')